import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue'),
    meta: {
      title: '登录',
    }
  },
  {
    path: '/reg',
    name: 'reg',
    component: () => import('../views/reg.vue'),
    meta: {
      title: '注册',
    }
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/home.vue'),
    meta: {
      title: '一码头成武',
      keepAlive: true,
    }
  },
  {
    path: '/my',
    name: 'my',
    component: () => import('../views/my.vue'),
    meta: {
      title: '我的',
      keepAlive: true,
    }
  },
  {
    path: '/xxList',
    name: 'xxList',
    component: () => import('../views/xxList.vue'),
    meta: {
      title: '消息',
      keepAlive: true,
    }
  },
  {
    path: '/xxDetail',
    name: 'xxDetail',
    component: () => import('../views/xxDetail.vue'),
    meta: {
      title: '系统推送',
      keepAlive: true,
    }
  },
  {
    path: '/chat_user',
    name: 'chat_user',
    component: () => import('../views/chat_user.vue'),
    meta: {
      title: '系统推送',
      keepAlive: true,
    }
  },
  {
    path: '/productHome',
    name: 'productHome',
    component: () => import('../views/productHome.vue'),
    meta: {
      title: '乡品',
      keepAlive: true,
    }
  },
  {
    path: '/product',
    name: 'product',
    component: () => import('../views/product.vue'),
    meta: {
      title: '乡品',
      keepAlive: true,
    }
  },
  {
    path: '/productDetail',
    name: 'productDetail',
    component: () => import('../views/productDetail.vue'),
    meta: {
      title: '门店详情',
    }
  },
  {
    path: '/peopleInfo',
    name: 'peopleInfo',
    component: () => import('../views/peopleInfo.vue'),
    meta: {
      title: '认证',
    }
  },
  {
    path: '/success',
    name: 'success',
    component: () => import('../views/success.vue'),
    meta: {
      title: '成功',
    }
  },
  {
    path: '/yijian',
    name: 'yijian',
    component: () => import('../views/yijian.vue'),
    meta: {
      title: '留言板',
    }
  },
  {
    path: '/changeMobile',
    name: 'changeMobile',
    component: () => import('../views/changeMobile.vue'),
    meta: {
      title: '修改手机号',
    }
  },
  {
    path: '/changePwd',
    name: 'changePwd',
    component: () => import('../views/changePwd.vue'),
    meta: {
      title: '修改密码',
    }
  },
  {
    path: '/setting',
    name: 'setting',
    component: () => import('../views/setting.vue'),
    meta: {
      title: '设置',
    }
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/about.vue'),
    meta: {
      title: '关于我们',
    }
  },
  {
    path: '/share',
    name: 'share',
    component: () => import('../views/share.vue'),
    meta: {
      title: '邀请好友',
    }
  },
  {
    path: '/kfPage',
    name: 'kfPage',
    component: () => import('../views/kfPage.vue'),
    meta: {
      title: '客服中心',
    }
  },
  {
    path: '/huodong',
    name: 'huodong',
    component: () => import('../views/huodong.vue'),
    meta: {
      title: '活动列表',
      keepAlive: true,
    }
  },
  {
    path: '/sharePage',
    name: 'sharePage',
    component: () => import('../views/sharePage.vue'),
    meta: {
      title: '邀请朋友',
    }
  },
  {
    path: '/dingzhi',
    name: 'dingzhi',
    component: () => import('../views/dingzhi.vue'),
    meta: {
      title: '定制站点',
    }
  },
  {
    path: '/fb',
    name: 'fb',
    component: () => import('../views/fb.vue'),
    meta: {
      title: '发布',
    }
  },
  {
    path: '/xiangxian',
    name: 'xiangxian',
    component: () => import('../views/xiangxian.vue'),
    meta: {
      title: '乡贤',
      keepAlive: true,
    }
  },
  {
    path: '/xiangxianDetail',
    name: 'xiangxianDetail',
    component: () => import('../views/xiangxianDetail.vue'),
    meta: {
      title: '乡贤详情',
    }
  },
  {
    path: '/gongxuList',
    name: 'gongxuList',
    component: () => import('../views/gongxuList.vue'),
    meta: {
      title: '供需列表',
      keepAlive: true,
    }
  },
  {
    path: '/projectList1',
    name: 'projectList1',
    component: () => import('../views/projectList1.vue'),
    meta: {
      title: '招商',
      keepAlive: true,
    }
  },
  {
    path: '/projectList',
    name: 'projectList',
    component: () => import('../views/projectList.vue'),
    meta: {
      title: '招商',
      keepAlive: true,
    }
  },
  {
    path: '/projectDetail',
    name: 'projectDetail',
    component: () => import('../views/projectDetail.vue'),
    meta: {
      title: '招商详情',
    }
  },
  {
    path: '/newsList',
    name: 'newsList',
    component: () => import('../views/newsList.vue'),
    meta: {
      title: '招商动态',
      keepAlive: true,
    }
  },
  {
    path: '/newsDetail',
    name: 'newsDetail',
    component: () => import('../views/newsDetail.vue'),
    meta: {
      title: '招商动态详情',
    }
  },
  {
    path: '/parkList',
    name: 'parkList',
    component: () => import('../views/parkList.vue'),
    meta: {
      title: '招商载体',
      keepAlive: true,
    }
  },
  {
    path: '/companyList',
    name: 'companyList',
    component: () => import('../views/companyList.vue'),
    meta: {
      title: '推商',
      keepAlive: true,
    }
  },
  {
    path: '/long',
    name: 'long',
    component: () => import('../views/long.vue'),
    meta: {
      title: '龙头企业',
      keepAlive: true,
    }
  },
  {
    path: '/gkPage',
    name: 'gkPage',
    component: () => import('../views/gkPage.vue'),
    meta: {
      title: '概况',
    }
  },
  {
    path: '/yingshang',
    name: 'yingshang',
    component: () => import('../views/yingshang.vue'),
    meta: {
      title: '营商',
      keepAlive: true,
    }
  },
  {
    path: '/huiyiPage',
    name: 'huiyiPage',
    component: () => import('../views/huiyiPage.vue'),
    meta: {
      title: '会商',
      keepAlive: true,
    }
  },
  {
    path: '/huiyiDetail',
    name: 'huiyiDetail',
    component: () => import('../views/huiyiDetail.vue'),
    meta: {
      title: '会商详情',
    }
  },
  {
    path: '/huiyiBm',
    name: 'huiyiBm',
    component: () => import('../views/huiyiBm.vue'),
    meta: {
      title: '会议报名',
    }
  },
  {
    path: '/huiyiMy',
    name: 'huiyiMy',
    component: () => import('../views/huiyiMy.vue'),
    meta: {
      title: '我的会议',
      keepAlive: true,
    }
  },
  {
    path: '/jdReport',
    name: 'jdReport',
    component: () => import('../views/jdReport.vue'),
    meta: {
      title: '企业尽调',
      keepAlive: true,
    }
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('../views/search.vue'),
    meta: {
      title: '搜索',
      keepAlive: true,
    }
  },
  {
    path: '/video',
    name: 'video',
    component: () => import('../views/video.vue'),
    meta: {
      title: '视频',
      keepAlive: true,
    }
  },
  {
    path: '/gongxuDetail',
    name: 'gongxuDetail',
    component: () => import('../views/gongxuDetail.vue'),
    meta: {
      title: '供需详情',
    }
  },
  {
    path: '/companyDetail',
    name: 'companyDetail',
    component: () => import('../views/companyDetail.vue'),
    meta: {
      title: '企业详情',
    }
  },
  {
    path: '/companyDetail1',
    name: 'companyDetail1',
    component: () => import('../views/companyDetail1.vue'),
    meta: {
      title: '企业详情',
    }
  },
  {
    path: '/chainDetail',
    name: 'chainDetail',
    component: () => import('../views/chainDetail.vue'),
    meta: {
      title: '产业详情',
    }
  },
  {
    path: '/chainList',
    name: 'chainList',
    component: () => import('../views/chainList.vue'),
    meta: {
      title: '链商',
      keepAlive: true,
    }
  },
  {
    path: '/parkDetail',
    name: 'parkDetail',
    component: () => import('../views/parkDetail.vue'),
    meta: {
      title: '招商载体详情',
    }
  },
  {
    path: '/huiyiCode',
    name: 'huiyiCode',
    component: () => import('../views/huiyiCode.vue'),
    meta: {
      title: '会议签到码',
    }
  },
  {
    path: '/jdList',
    name: 'jdList',
    component: () => import('../views/jdList.vue'),
    meta: {
      title: '尽调报告',
      keepAlive: true,
    }
  },
  {
    path: '/myFb',
    name: 'myFb',
    component: () => import('../views/myFb.vue'),
    meta: {
      title: '我的发布',
      keepAlive: true,
    }
  },
  {
    path: '/mySc',
    name: 'mySc',
    component: () => import('../views/mySc.vue'),
    meta: {
      title: '我的收藏',
      keepAlive: true,
    }
  },
  {
    path: '/newsDetail_xs',
    name: 'newsDetail_xs',
    component: () => import('../views/newsDetail_xs.vue'),
    meta: {
      title: '详情',
    }
  },
  {
    path: '/newsXsDetail',
    name: 'newsXsDetail',
    component: () => import('../views/newsXsDetail.vue'),
    meta: {
      title: '详情',
    }
  },
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
